//
//  VideoListCollectionViewCell.m
//  Tongcheng
//
//  Created by 邢广范 on 2017/4/8.
//  Copyright © 2017年 Tongcheng. All rights reserved.
//

#import "VideoListCollectionViewCell.h"
#import "UIImageView+AFNetworking.h"

@interface VideoListCollectionViewCell ()

@property (weak, nonatomic) IBOutlet UIImageView *imageView;
@property (weak, nonatomic) IBOutlet UIView *backView;
@property (weak, nonatomic) IBOutlet UILabel *playCountLabel;
@property (weak, nonatomic) IBOutlet UILabel *roseCountLabel;

@end

@implementation VideoListCollectionViewCell

- (void)setModel:(VideoListDataModel *)model
{
    _model = model;
    [self.imageView setImageWithURL:[NSURL URLWithString:model.avatar] placeholderImage:nil];
    self.playCountLabel.text = model.views;
    self.roseCountLabel.text = model.roses;
}

- (void)awakeFromNib {
    [super awakeFromNib];
    self.backView.backgroundColor = RGBA(0x000000, 0.3);
    // Initialization code
}

@end
